import { createWebHashHistory, createRouter } from 'vue-router'


const routes = [
  { path: '/', component: () => import('../pages/index/home.vue') },
  {
    path: '/query',
    component: () => import('../pages/QueryRoot.vue'),
    children: [
      {
        path: 'login',
        component: () => import('../pages/login/index.vue')
      },
      {
        path: 'upload1',
        component: () => import('../pages/upload/upload1.vue')
      },
      {
        path: 'upload2',
        component: () => import('../pages/upload/upload2.vue')
      },
      
    ]
  },
  { path: '/agreement', component: () => import('../pages/agreement.vue') },
  {
    path: '/camera',
    name:'camera',
    component: () => import('../pages/upload/camera.vue')
  }

]

export const router = createRouter({
  history: createWebHashHistory(),
  routes,
})